package com.hsit.web;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import org.apache.commons.io.FileUtils;

import com.kenai.jaffl.Platform.OS;

public class J2 {

	/**
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) throws IOException {
		// TODO Auto-generated method stub
		// InputStream ip = new FileInputStream(new File("D://a.txt"));
		 OutputStream op = new FileOutputStream("D://ww.html");
		 StringBuffer a=new
		 StringBuffer("<!doctype html><html lang='en'><head><meta charset='UTF-8' /><meta name='Generator' content='EditPlus®'><meta name='Author' content=''> <meta name='Keywords' content=''><meta name='Description' content=''></head><body><input type='text' value='qqqqq1' /></br><input type='text' value='qqqqq' /></table></body></html>");
		 op.write(a.toString().getBytes());
		// byte[] b = new byte[ip.available()];
		// int count = 0;
		// while((count=ip.read(b))!=-1){
		// op.write(b, 0, count);
		// op.flush();
		// }
		// ip.close();
		// op.close();

//		String a = null;
//		BufferedReader bf = new BufferedReader(new FileReader("D://a.txt"));
//		a = bf.readLine();
//		BufferedWriter bWriter = new BufferedWriter(new FileWriter("D://b.txt"));
//		bWriter.write(a.substring(2, 5));
//		bWriter.flush();
//		bWriter.close();
//		bf.close();

	}

}
